package base.arrays;

import java.util.Arrays;
import java.util.Comparator;

public class Lambda函数式编程 {
    public static void main(String[] args) {

//        doing(new girl() {
//            @Override
//            public void study() {
//                System.out.println("女孩在学习~~");
//            }
//        });

        doing(
                ()->{
                    System.out.println("幼楚在认真学习~~");
                }
        );

    }
    public static void doing(girl g){
        g.study();
    }
}

@FunctionalInterface
interface girl{
    public abstract void study();
}
